import React from "react";
function VideoComponent() {
	// let video = null;
	// let ref = (element) => (video = element);
	let ref = React.createRef();
	return (
		<div>
			<video
				src='https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm

'
				ref={ref}
			/>
			{/* <button onClick={() => video.play()}>button</button> */}
			<button onClick={() => ref.current.play()}>button</button>
		</div>
	);
}
export default VideoComponent;
